﻿

using System;
using System.Text;
using System.Reflection;
using Microsoft.Practices.Unity.InterceptionExtension;
using System.Runtime.Caching;

using Microsoft.Practices.EnterpriseLibrary.Caching;
using System.Collections.Generic;

namespace Demo.Infrastructure.Log
{
    /// <summary>
    /// 数据库日志
    /// </summary>
    public class LogDatabase : ILog
    {
        /// <summary>
        /// 写数据库日志
        /// </summary>
        /// <param name="message">日志信息</param>
        public void Log(string message)
        {
            Utils.Log(message);
        }

        /// <summary>
        /// 写数据库日志
        /// </summary>
        /// <param name="ex">异常信息</param>
        public void Log(Exception ex)
        {
            Utils.Log(ex);
        }
    }

}
